<?php

namespace app\model\not_del;

use think\Model;
use think\model\relation\HasMany;

/**
 * 角色
 */
class RoleModel extends Model
{
    protected $name = 'role';

    /**
     * 用户
     * @return HasMany
     */
    public function user(): HasMany
    {
        return $this->hasMany(UserModel::class, 'role_id');
    }

}